﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WinTry
{
    public partial class Root : Form
    {

        public Root()
        {
            InitializeComponent();
        }

        private void btnShowHide_Click(object sender, EventArgs e)
        {
            if (this.pbxPhoto.Visible)
            {
                this.pbxPhoto.Hide();
            }
            else
            {
                this.pbxPhoto.Show();
            }
        }

        private void btnShowHideName_Click(object sender, EventArgs e)
        {
            if (this.txtName.Text == "Now you don't")
            {
                this.txtName.Text = "Now you see me";
            }
            else
            {
                this.txtName.Text = "Now you don't";
            }
        }

        private void button1_Click(object sender, EventArgs e)
        {
            MessageBox.Show("How are you doing?", "HELLO THERE STRANGER");
        }

        private void läsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            
        }

        private void mnuReadInt_Click(object sender, EventArgs e)
        {
            int tal;
            frmRead Read = new frmRead();
            if (Read.ShowDialog() == DialogResult.OK)
            {
               
            }

        }

        private void mnuWriteInt_Click(object sender, EventArgs e)
        {
            
        }

        private void mnuQuitProgram_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show("Are you sure you want to quit?", "Quit", MessageBoxButtons.OKCancel) == DialogResult.OK)
            {
                Application.Exit();
            }
        }
    }
}
